package com.lay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 权限信息表
 * </p>
 *
 * @author Lay
 * @since 2022-06-09
 */
public class Power implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 权限编号，主键，唯一
     */
    @TableId(value = "p_id", type = IdType.AUTO)
    private Integer pId;

    /**
     * 权限名称
     */
    private String pName;

    /**
     * 添加人编号
     */
    private Integer unId;

    /**
     * 请求路径
     */
    private String url;

    /**
     * 权限描述
     */
    private String pMsg;

    /**
     * 添加日期
     */
    private LocalDateTime addtime;


    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public Integer getUnId() {
        return unId;
    }

    public void setUnId(Integer unId) {
        this.unId = unId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getpMsg() {
        return pMsg;
    }

    public void setpMsg(String pMsg) {
        this.pMsg = pMsg;
    }

    public LocalDateTime getAddtime() {
        return addtime;
    }

    public void setAddtime(LocalDateTime addtime) {
        this.addtime = addtime;
    }

    @Override
    public String toString() {
        return "Power{" +
        "pId=" + pId +
        ", pName=" + pName +
        ", unId=" + unId +
        ", url=" + url +
        ", pMsg=" + pMsg +
        ", addtime=" + addtime +
        "}";
    }
}
